]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
backgroundMenu: Drop grab-op-begin signal connection
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 31 Oct 2022 12:11:21 +0000 (13:11 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 30 Jan 2023 12:19:22 +0000 (12:19 +0000)
This is done just to "reset" the click action when a grab operation
begins. With grab ops being based on ClutterGrab now, the action
will be implicitly reset when these happen. This is unnecessary now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

js/ui/backgroundMenu.js

index 4c7372a4b74ead18e18d2fef267d9423b56b651f..6282f308b540b637dfa9fb7b4f28e27ae0f628c3 100644 (file)
@@ -56,9 +56,6 @@ function addBackgroundMenu(actor, layoutManager) {
     });
     actor.add_action(clickAction);
 
-    global.display.connectObject('grab-op-begin',
-        () => clickAction.release(), actor);
-
     actor.connect('destroy', () => {
         actor._backgroundMenu.destroy();
         actor._backgroundMenu = null;